<h3 class="title">
	&nbsp;首页 &gt; <a href="<?=App::adminUrl('store', 'index', array('res_id' => $res_id));?>"><?=h($storeInfo['name'])?></a>
		       &gt; <a href="<?=App::adminUrl('dish', 'index', array('res_id' => $res_id));?>">菜品管理</a> &gt; 批量添加
</h3>

<form method="post" name="form1" action="<?=App::adminUrl('dish', 'process');?>" enctype="multipart/form-data" onsubmit="return checkSubmit();">
  <input type="hidden" name="action" value="<?=$action;?>" />
  <input type="hidden" name="res_id" value="<?=$res_id;?>" />
  <div class="tags">
    <div id="tagstitle">
    <a href="#" id="one1" onclick="setTab('one',1,1)" class="hover">基本信息</a>
    </div>
    <div id="tagscontent">
      <div id="con_one_1">
        <table width="100%" border="0" cellspacing="2" cellpadding="0" id="table1" class="formtable">
          <tr>
            <td width="19%" align="right"><span class="title">设置分类</span></td>
            <td width="1%">&nbsp;</td>
            <td width="80%">
    		  <select id="cat_id" name="cat_id" class="ssel">
	    		<option value="0">（默认分类）</option>
		        <?php
					foreach($category as $item){
						?><option value="<?=$item['dish_cat_id']?>"><?=$item['dish_cat_name']?></option><?php
					}
				?>
              </select>
              &nbsp;<font color="red">*</font> <a href="<?=App::adminUrl('dish', 'category', array('res_id' =>$res_id));?>">点这里设置分类</a></td>
          </tr>
          <tr>
            <td width="19%" align="right"><span class="title">批量添加</span></td>
            <td width="1%">&nbsp;</td>
            <td width="80%">
			<div class="table_td">
            <table width="98%" border="0" cellspacing="2" cellpadding="0" id="zone_deliver" class="formtable">
            	<thead>
				<tr>
					<th width="5%"></th>
                	<th>菜品名称</th>
                    <th>价格(元)</th>
                	<th>描述</th>
                </tr>
                </thead>
            <?php
				for($i=0; $i<10; $i++){
			?>
				<tr>
					<td align="center"><?=intval($i+1);?></td>
                	<td align="center"><input type="text" name="name[]" value="" class="skey-m" /></td>
                    <td align="center"><input type="text" name="price[]" value="" class="skey-s" /></td>
                	<td align="center"><input type="text" name="description[]" value="" class="skey-l" /></td>
                </tr>
            <?php
				}
            ?>
            </table>
            </div>
            </td>
          </tr>
        </table>
      </div>
    </div>
  </div>
  <div class="blank20"></div>
  <input type="submit" name="dosubmit" value=" 提交 " class="button" />
  <input type="button" onclick="javascript:location.href='<?=App::adminUrl('store', 'index');?>'" value=" 返回 " class="button" />
</form>

<script type="text/javascript">
function checkSubmit(){
	if ($("#name").val() == "") {
		alert("餐厅名称没有填写！");
		$("#name").focus();
		return false;
	}
}

$(document).ready(function() {

});

</script>